package com.oren.system.service;

import com.oren.base.pojo.Page;
import com.oren.system.pojo.User;

import java.util.List;

/**
 * @Author: oren
 * @Description:
 * @Date: Create on 2017/11/6 0006 17:39
 */
public interface UserService  {

	/**
	 * 根据用户名查询
	 * @param username
	 * @return
	 * @throws Exception
	 */
	User getUserByUserName(String username)throws Exception;

	/**
	 * 分页查询
	 * @return
	 * @throws Exception
	 */
	Page<User> pageList(User user,int pageNum,int pageSize)throws Exception;

	/**
	 * 注册
	 * @param user
	 * @return
	 * @throws Exception
	 */
	boolean reg(User user)throws Exception;

	/**
	 * 登录
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	User login(String username,String password)throws Exception;

	/**
	 * 根据ids删除数据
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	int deleteUserByIds(String [] ids) throws Exception;


}
